// ml:run = $bin < input
#include <iostream>
int a[1000010];
int main()
{
    std::ios_base::sync_with_stdio(false);
    for (int i=1;i<=1000000;i++){
        int now=i;
        int len=0;
        while(now){
            a[len++]=(now & 1);
            now<<=1;
        }
        for (int j=0;j<len;j++)
            for (int k=len-2
    }
}

